<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<div class="col-xs-12" style="margin-top:5px;">
	<table id="simple-table" class="table table-bordered table-hover">
		<thead>
			<tr>
				<th class="center">ID</th>
				<th class="center">用户ID</th>
				<th class="center">用户昵称</th>
				<th class="center">来源方式</th>
				<th class="center">操作</th>
			</tr>
		</thead>
		
		<tbody>
			<c:forEach items="${data}" var="item" varStatus="i">
		       <tr>
					<td class="center">${item.id }</td>
					<td class="center">${item.userId }</td>
					<td class="center">${item.nickName }</td>
				    <td class="center">
						<c:choose>
							<c:when test="${item.source ==0}">全部启用</c:when>
							<c:when test="${item.source ==1}">旺旺启用</c:when>
							<c:when test="${item.source ==2}">亲朋启用</c:when>
						</c:choose>
					</td>
					<td class="center">
						<c:if test="${1 == sessionScope.session_admin_user_key.roleId}" >
						<a class="btn btn-xs btn-danger" title="删除用户" onclick="del('${item.id}');">删除用户</a>
						</c:if>
					</td>
				</tr>
		    </c:forEach>
				
			</tbody>
		</table>
		<%@include file="../paging.jsp" %>
</div>

